/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Model;

/**
 *
 * @author hicham
 * This class represents an attribute of a concept
 */
public class Attribute {
    static public int idLastCreated = 0;
            
    private int id;
    private String name;

    public Attribute() {
        super();
        this.id = Commun.IncrementId(idLastCreated,1);
        idLastCreated++;
    }

    public Attribute(String name) {
        this();
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }
    
    
}
